import httpInstance from '@/utils/http'

export function getCategoryAPI(id){
    return httpInstance({
        url:'/category',
        params:{
            id
        }
    })
}

export function getCategoryFilterAPI(id){
    return httpInstance({
        url:'/category/sub/filter',
        params:{
            id
        }
    })
}

export function getSubCategoryAPI(data){
    return httpInstance({
        url:'/category/goods/temporary',
        method:'post',
        data
    })
}